package com.hejia.alauda.persistence.mybatis;

import org.apache.ibatis.annotations.Select;

import com.hejia.alauda.entity.Balance;
import com.hejia.alauda.entity.BalanceOperation;
import com.hejia.alauda.persistence.BaseMapper;

public interface BalanceOperationMapper extends BaseMapper<BalanceOperation> {
	
	@Select("select count(id) from `balanceoperation` where `balance_id`=#{id}")
	int findCountByBalance(Balance balance);
}
